package com.smartfactory.sail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.smartfactory.sail.entity.enums.PurchaseStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 采购单明细
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "PurchaseRecord对象", description = "采购单明细")
public class PurchaseRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "采购单id")
    @TableField("purchaseId")
    private Long purchaseId;

    @TableField("itemId")
    private Long itemId;


    @TableField("itemCode")
    private String itemCode;

    @ApiModelProperty(value = "名称")
    @TableField("itemName")
    private String itemName;

    @ApiModelProperty(value = "规格型号")
    private String specification;

    @ApiModelProperty(value = "采购数量")
    @TableField("purchaseSize")
    private Integer purchaseSize;

    @ApiModelProperty(value = "当前库存")
    @TableField("currentStorageSize")
    private Integer currentStorageSize;

    @ApiModelProperty(value = "本次采购单价")
    @TableField("currentPrice")
    private BigDecimal currentPrice;

    @ApiModelProperty(value = "上次采购单价")
    @TableField("lastPrice")
    private BigDecimal lastPrice;

    @ApiModelProperty(value = "本次采购商名称")
    @TableField("supplierName")
    private String supplierName;

    @ApiModelProperty(value = "本次采购商id")
    @TableField("supplierId")
    private Long supplierId;

    @ApiModelProperty(value = "状态1.待采购2待入库3已入库")
    private PurchaseStatusEnum status;

    @ApiModelProperty(value = "预计到货时间")
    @TableField("arrivalTime")
    private String arrivalTime;

    @ApiModelProperty(value = "实际到货时间")
    @TableField("actualArrivalTime")
    private String actualArrivalTime;

    @ApiModelProperty(value = "提前提醒天数")
    @TableField("reminderDays")
    private Integer reminderDays;

    @ApiModelProperty("凭证图片id多个用|隔开")
    @TableField("imags")
    private String imags;

    @ApiModelProperty(value = "创建人")
    @TableField("createUser")
    private String createUser;

    @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private String createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateUser")
    private String updateUser;

    @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
    @TableField("updateTime")
    private String updateTime;


}
